package com.itheima.day01_Helloworld;

public class Demo2_LiteralDemo {
    public static void main(String[] args) {
        //1.整数
        System.out.println("66 = " + 66);
        //2.小数
        System.out.println("3.66 = " + 3.66);
        //3.字符必须用单引号引起来
        System.out.println("'a' = " + 'a');
        System.out.println("'0' = " + '0');
        System.out.println("'中' = " + '中');
        System.out.println("' ' = " + ' ');
        //特殊字符：\t制表符， \n换行符
        System.out.println("'\\t' = " + '\t');
        System.out.println("'\\n' = " + '\n');
        //4.字符串是双引号引起来的
        System.out.println("\"我爱你中国abc\" = " + "我爱你中国abc");
        //5.布尔值只有两个值，true和false
        System.out.println("true = " + true);
        System.out.println("false = " + false);
    }
}
